<?php namespace Summer\Hjd\Updates;

use Schema;
use Winter\Storm\Database\Updates\Migration;

class BuilderTableCreateSummerHjdShare extends Migration
{
    public function up()
    {
        Schema::create('summer_hjd_share', function($table)
        {
            $table->engine = 'InnoDB';
            $table->increments('id')->unsigned();
            $table->timestamp('created_at')->nullable();
            $table->timestamp('updated_at')->nullable();
            $table->string('from')->nullable();
            $table->string('remark', 255)->nullable();
            $table->string('platform')->nullable();
            $table->integer('user_id')->nullable();
            $table->string('share_platform')->nullable();
            $table->integer('share_uid')->nullable();
            $table->string('type')->nullable();
            $table->integer('type_id')->nullable();
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('summer_hjd_share');
    }
}
